package ProxyClient;

public class Application {

	public static void main(String[] args) {
		IHttpDownloader httpDownloader = new HttpProxy();
		/** Request a page **/
		HttpResource googlePage = httpDownloader.getResource("http://google.com");
		/** Request an image file **/
		HttpResource professorPhoto = httpDownloader.getResource("http://www1.in.tum.de/lehrstuhl_1/images/people/Bernd%20Bruegge.jpg");
		/** Request the same page once more. It should be extracted from cache now **/
		HttpResource googlePage2 = httpDownloader.getResource("http://google.com");
		/** Request the same image once more. It should be extracted from cache now  **/
		HttpResource professorPhoto2 = httpDownloader.getResource("http://www1.in.tum.de/lehrstuhl_1/images/people/Bernd%20Bruegge.jpg");
		
		System.out.println("Check out the 'cache' folder");
	}

}
